CODE128_AUTO.js ➔ ???   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 2
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
1
import CODE128 from './CODE128';
2
import autoSelectModes from './auto';
3
4
class CODE128AUTO extends CODE128{
5
	constructor(data, options){
6
    // ASCII value ranges 0-127, 200-211
7
		if (/^[\x00-\x7F\xC8-\xD3]+$/.test(data)) {
8
			super(autoSelectModes(data), options);
9
		} else{
10
			super(data, options);
11
		}
12
	}
13
}
14
15
export default CODE128AUTO;
16